
#outer{
    background-color: black;
}
nav{
    max-width: 1200px;
    margin:0 auto;
    width: 100%;
    height: 48px;
    background-color: black;
    display: flex;
    justify-content: space-between;

    i{
        color: white;
        font-size: 20px;
    }
    #lefticon > i{
        position: relative;
        top: 12px;
        left: 10px;
    }
    #lefticon > i:nth-child(2)
    {
        display: none;
    }

    #middleTitle img {
        margin-top: 8px;
        height: 31px;
        line-height: 48px;
    }
    #righticon{
        // background-color: yellowgreen;
        
    }
    #righticon > i{
        
        line-height: 48px;
        
    }
    #lefticon > ul{

        left: 0;
        bottom: 0;
        right: 0;
        position: absolute;
        display: flex;
        flex-direction: column;
        top: 48px;
        background-color: white;
        padding-top: 50px;

    }
    #lefticon > ul > li{
        width: 80%;
        margin: 0 auto;
        line-height: 44px;
        border-bottom: 1px solid white;
        display: none;
    }

    #lefticon > i:nth-child(1):active
    {
        display: none;
    }
    #lefticon> i:nth-child(1):active ~ i
    {
        display: block;
    }
    #lefticon > i:nth-child(1):active ~ ul >li{
        display: block;
    }
    #lefticon i:nth-child(1):active ~ ul{
        background-color: yellowgreen;
    }
}

//设置媒体查询
@media only screen{
    @media (min-width:768px)
    {
        #middleTitle{
            order: 1;
        }
        #lefticon{
            order: 2;
            position: static;
            flex: auto;
            
        }
        #righticon{
            order: 3;
        }
        #lefticon  > i{
            display: none;

        }
        #lefticon ul{

            position: static;
        }
        nav #lefticon > ul > li{
            display: block;
            height: 48px;
            color: white;
            background-color:black;
            text-align: center;
            font-size: 15px;
        }
        nav #lefticon > ul > li span{
            display: none;
        }
        nav > #lefticon > ul{
            height: 48px;
            display: flex;
            position: static;
            flex-direction: row;
            padding-top: 0;
            justify-content: space-around;
        }
    }
}